[PATCH 5.2 075/131] kconfig: Clear "written" flag to avoid data loss