http: replace destroySoon with socket.end
Closing a TCP connection requires 2 FIN/ACK exchanges, so we should wait for both events before destroying a socket
Fixes: https://github.com/nodejs/node/issues/36180
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes - [?] tests and/or benchmarks are included
-
commit message follows commit guidelines