[PATCH openEuler-22.09 180/379] libbpf: Tighten BTF type ID rewriting with error checking