flock: fix prototypes