Add a missing lock in TlsStream::Close

fixes #6621
refs #6724