cache file read/write locking