client: Make auto_connect_localhost respect HAVE_IPv6 and OS_IS_WIN32
Previously, if built on Windows or without IPv6 support, the client would try to connect over IPv6 if auto_connect_localhost is enabled.
Previously, if built on Windows or without IPv6 support, the client would try to connect over IPv6 if auto_connect_localhost is enabled.