Use xalloc.h in lockfd.c