net: add dev_txq_stats_fold() helper