[PATCH 5.14 495/849] libbpf: Fix BTF header parsing checks