transmit_thread wait to make sure receive_thread is ready