Fixes #21833 -- Fix UserSettingsHolder.is_overridden() and add tests.