Improve file cache lock system