[openEuler-5.10 336/557] libbpf: Fix BTF data layout checks and allow empty BTF