[PATCH 5.10 353/575] libbpf: Fix BTF header parsing checks