Maybe use a ```java.util.concurrent.CountDownLatch``` instead of this plus the lock