[MSVC] Fix compilation errors with lambdas in ResourceLoadStatistics