[Issue 9465] When compiled in debug mode ldap_get_option asserts breaking API compatibility