dirmngr: Fix assertion failure due to wrong buffer length computation.
* dirmngr/ks-engine-ldap.c (ks_ldap_put): Chnage to use a string than a memory buffer for INFO.
This avoids assertion failures for certain lengths of the INFO buffer
with the key listing. And the new code is much cleaner.