dns: don't use AI_V4MAPPED unless IPv6 is explicitly specified

`AI_V4MAPPED` is only applicable when using IPv6, so don't bother using it unless `AF_INET6` is specified.

@misterdjules if this still causes a problem, I can remove it from `lib/net.js` completely.