[tor-commits] [tor/master] Add a timeout to tor_cond_wait; add tor_cond impl from libevent