[openEuler-5.10 339/557] libbpf: Fix BTF header parsing checks