[PATCH 5.10 42/53] dm stats: add cond_resched when looping over entries