[PATCH openEuler-22.09 v3 130/391] libbpf: Generalize BTF and BTF.ext type ID and strings iteration