Description
In ZooLockTest, we create a ZooKeeper instance and then use it without waiting for it to be connected. Because ZooKeeper uses an asynchronous connection, this can cause spurious failures in ZooLockTest.
Create a simple Watcher that we can use to know when we're connected.