[NET]: proto_unregister: fix sleeping while atomic