Upgrade a regular `net.Stream` connection to a secure `tls` connection.