afpd: Solaris locking problem, bug #559

Authored-by: Peter Baranski
Reviewed-by: Ralph Boehme <rb@sernet.de>