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 v5.17.13 by commit bf634fe2a05298b21bd7d75f59feb6b12045ea33. For more details please see the references link.