[PATCH openEuler-5.10 161/427] libbpf: Fix logic for finding matching program for CO-RE relocation