Unlock recv_ready_mutex in main thread

Previously, the main thread held on to recv_ready_mutex after the recv
thread was ready.