Synchronize accesses to SimpleCache and FileCache