Issue #2972043 by Dave Reid: Fixed incompatibility with config_readonly because to XmlSitemapGenerator::batchVariableSet() always saves config.