Increment the cache refcount after locking the file mutex, not before.