lockfile.c: rename static functions