gnupg: backport a build fix for when ldap support is disabled
gnupg: backport a build fix for when ldap support is disabled

https://dev.gnupg.org/T6239

JPeterMugaas/MSYS2-packages,JPeterMugaas/MSYS2-packages,JPeterMugaas/MSYS2-packages,JPeterMugaas/MSYS2-packages