[PATCH 5.15 257/667] libbpf: Fix logic for finding matching program for CO-RE relocation