tls_wrap: remove unused variable

Closes #7957.
Merge remote-tracking branch 'upstream/master'