Use real C++ bools in lock_file() and lock_file_plain().