fix race condition in TestZooKeeperClient