Have CountDownLatch automatically use new when called as a function