[Git][openldap/openldap][master] ITS#9952 libldap: use atexit for TLS teardown