settings: make sure to use lowercase setting ID for lookups

This fixes a potential issue with the setting being stored in a settings map with its identifier being turned to lower case but not all setting lookups are done with a lower cased identifier. I don't know of any case where this is a problem right now because we use lower cased setting identifier everywhere but it's still not very clean and safe.