flock.c: use err() instead of exit() when erro exists