FIX: avoid waiting forever on a locked CPluginDirectory while exiting
[ouya] work around XBMC process deadlocking on exit