API performance fixes: avoid unstubbing $wgContLang and $wgUser