dm stats: add cond_resched when looping over entries
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v4.9.317 by commit 6adce527fe86f0156ea853742c951c01b1f0d6fc. For more details please see the references link.