FIxed race condition in net_connect test