lockfile.h: extract new header file for the functions in lockfile.c