[library] Small change in socket ref handling
[library] Small change in socket ref handling

On new connection unref the socket after the handshake and ref it
inside the handshake handle that better knows about the state of the
socket.

G-Node/nswineproxy,G-Node/nswineproxy