heimdal: Fix compiling hdb ldap as a module
Fix build when WITH_OPENLDAP defined.
PR: 278430 Obtained from: Upstream c1c7da7f79