Add function cl_net_wait: wait finished net pthread.