HADOOP-5869. Fix bug in assignment of setup / cleanup task that was causing TestQueueCapacities to fail. Contributed by Sreekanth Ramakrishnan.