ad: replace ARRAY_SIZE with N_ELEMENTS
ARRAY_SIZE is taken from the Samba header file memory.h which is not
available as a public header in newer Samba versions anymore. This patch
replaces it with an internal macro.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>