Added Mutex to MemoryStoragePlugin.