[PATCH 4.19.x] kconfig: Clear "written" flag to avoid data loss