Fix docs for Sockets.getaddrinfo() (#52538)
Previously only the two-argument method was documented, which stated
that the default type to be returned was IPv4. But that hasn't been true
since 2ab654ce5b (#36029), so now both methods are documented and
corrected.
I believe this fixes #40306.