Add support for ssl/tls upgrade of an existing NetSocket