YARN-2526. SLS can deadlock when all the threads are taken by AMSimulators. (Wei Yan via kasha)