correctly detect leaf classes in tc when the leaf classes are attached to a qdisc instead of a class