ConfLock and PlaylistLock take the plugin API instance as a constructor parameter, not as a global variable.