Fixed the concurrency issue with DependencyResolutionLogger.