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