socket: report a peer reset on Windows as close(socket, ECONNRESET) instead of a code-less error (#39615)