Generic lockf.c.