[PATCH openEuler-22.09 v3 343/391] libbpf: Fix section counting logic