Connection: move setting of socket options

The methods that set socket options are silently ignored by node
if connect() has not been called yet.