[Issue 10469] Some TLS option values are leaked on LDAP disposal