[PATCH openEuler-22.09 310/379] libbpf: Refactor internal sec_def handling to enable pluggability