Merge pull request #6112 from stenzek/videoconfig-race VideoConfig: Prevent race condition on g_Config when refreshing