[PATCH 5.17 51/75] dm stats: add cond_resched when looping over entries