netatalk: fix a crash on Solaris when registering with mDNS

Signed-off-by: Ralph Boehme <rb@sernet.de>