peer must be close by RpcChannel
 fixbug in unittest of wait_queue