[v11.x] backport: tls: do not confuse TLSSocket and Socket
This is a backport of https://github.com/nodejs/node/pull/25153. It was the only commit that was not already backported as all other commits where accidentally backported with a following backport and all other commits besides this one are empty (so I skipped them).
Original commit message:
Don't use "socket" to describe two different objects in the same function.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines