[PATCH openEuler-5.10-LTS 25/31] libbpf: Fix use-after-free in btf_dump_name_dups