[PATCH openEuler-22.09 335/379] libbpf: Fix section counting logic