[PATCH 5.4 164/183] kconfig: fix infinite loop when expanding a macro at the end of file