ldap_modify_batch: Use safe_emalloc to allocate all memory.