Issue #19875: Fix random test_getsockaddrarg() failure.
socketmodule.c: backport INVALID_SOCKET from Python 3.5 to simplify the code
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
on closed socket.