kconfig: Clear "written" flag to avoid data loss