libcli/ldap: move generic ldap control encoding code to ldap_message.c