Removed file lock function