[PATCH 5.18 41/67] dm stats: add cond_resched when looping over entries