Fix a deadlock in TlsStream::Read / TlsStream::Close

fixes #8124