Make RunConfig.increaseLatch to be earlier, which should help in performance as it should increase the latch count earlier, thus making the latch to reach 0 harder.