lockfile: add accessors get_lock_file_fd() and get_lock_file_fp()