net: fix connect crash when call destroy in lookup handler
requested to merge github/fork/theanarkh/fix_connect_crash_when_call_destroy_in_lookup_handler into main
fix: https://github.com/nodejs/node/issues/50841
cc @ShogunPanda
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines