[PATCH 09/34] dm stats: add cond_resched when looping over entries