Fix pthread_cond_wait() in zookeeper_lock::_assure_session_connected()