[PATCH 6.12 242/826] libbpf: fix sym_is_subprog() logic for weak global subprogs