[system.xml] Dispose XmlReader using correct value. Fixes #21771