[PATCH 5.10 330/599] libbpf: Skip forward declaration when counting duplicated type names