[PATCH 6.1 0211/1146] libbpf: Use elf_getshdrnum() instead of e_shnum