[PATCH 6.11 271/817] libbpf: fix sym_is_subprog() logic for weak global subprogs