[PATCH 6.0 019/197] tools/nolibc: Fix missing strlen() definition and infinite loop with gcc-12