dm cache: fix race causing dirty blocks to be marked as clean