flock.c: use fcntl instead of lockf in flock(2) emulation