This works around the limitation that 1.56 boost::asio::ssl::stream objects do not support r-value move or construction. It is required when the stream does not own the socket.