Bugfix on Setting cache file lock