A GCD based implementation of Java’s CountDownLatch