tls_wrap: remove unused variable

Closes #7957.