[PATCH 4.9 08/12] dm stats: add cond_resched when looping over entries