tls: Fix context leak on tls_device_down