locks: remove extraneous IS_POSIX and IS_FLOCK tests