Make the plugin classloader a bit more thread safe to prevent class not found errors when a class is loaded at the same time from another thread.