Fix lock flags abuse (found by Casey).

Signed-off-by: Matt Benjamin <matt@cohortfs.com>