Fixes to DLZ modules
Fix few issues detected by coverity scan in dlz modules.
contrib/dlz/modules/ldap/dlz_ldap_dynamic.c:425 is detected, but IMO it is false positive. j is increased every time, so host can be allocated only once.
Other places fix few unfreed resources on error condition.