Fix CountDownLatch usage of NSCondition
NSCondition.wait must be run in a loop that continuously checks the actual predicate. The wait method can randomly wake up without the condition being signaled.
NSCondition.wait must be run in a loop that continuously checks the actual predicate. The wait method can randomly wake up without the condition being signaled.