Revert "socketlib: properly fix the IPv6 to IPv4 fallback code."

This reverts commit 08477065972186327dba55ba0da92892c84b6c16, which
caused failures as reported in github issue #189. Hopefully this does
not break it for other users again...