[PATCH openEuler-22.09 273/379] libbpf: Simplify BPF program auto-attach code