Change the initial value of CountDownLatch to wait all threads are ready