Loader: Fix locking bug in CreateInstance
2 files changed