net-sched: add dynamically sized qdisc class hash helpers