Fix SecureTcpChannel by setting the socket property on Assign

Setting the socket property on `Assign` is required for shutting down the socket correctly and accessing the  `IsConnected` property.