In #2805 we have made it possible to override any config setting in settings.php; this issue here is a follow-up, to indicate overridden settings in the UI, and to have them "locked".
Screenshot from @herbdool's PoC PR:

PoC PR by @herbdool: backdrop/backdrop#2607