[PATCH openEuler-22.09 363/379] libbpf: Avoid double stores for success/failure case of ksym relocations