net: partially revert "simplify Socket.prototype._final"
Partially revert b7e6ccd0 because it broke a test that was added since its last CI run.
Refs: https://github.com/nodejs/node/pull/24075 Refs: https://github.com/nodejs/node/pull/23866
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines