[PATCH 6.7 629/713] kconfig: fix infinite loop when expanding a macro at the end of file