[PATCH 5.15 504/917] libbpf: Fix BTF header parsing checks