Fix set_posix_lock check which had been reversed in the recent