Refs: https://github.com/libuv/libuv/pull/3482
Workaround getsockname() not working for a TCP handle that has received RST from the remote. Co-authored-by: Jameson Nash <vtjnash@gmail.com>