[PATCH 6.6 194/676] libbpf: fix sym_is_subprog() logic for weak global subprogs