Update lock-file.cpp