net: provide family option in net.connect and net.createConnection

This patch provides option family in net.connect and
net.createConnection to set stack version. With this option, programmers
can write http.Agent with modified http.Agnet.createSocket that will
handle ENETUNREACH exception and try other stack version.