[PATCH openEuler-22.09 136/379] libbpf: Generalize BTF and BTF.ext type ID and strings iteration