Synchronize selrecord()/selwakeup()