[PATCH 6.8 623/715] kconfig: fix infinite loop when expanding a macro at the end of file