AMBARI-3328. Unit test for agents fail/hang at TestActionQueue and TestStackUpgrade.  (dlysnichenko)