[SettingsProvider] fix the removing of old keys

BUG: 174611691
Test: atest android.provider.DeviceConfigTest with ag/13130208.
Change-Id: I94b5a314c60b873a6dec5f4a05b3aa154cd530ca
1 file changed