net: emit dns 'lookup' event before connect

net.connect() and net.createConnection() now emit a 'lookup' event
after resolving the hostname but before connecting.

Fixes #5418.

Suggested reviewer: @isaacs