Prevent synchronous ZooKeeper from blocking forever