PluginMemory: fix unlock()