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