[coreboot-gerrit] Change in coreboot[master]: util/sconfig: Refactor and fix add_register()