dm-cache-policy: introduce is_dirty method to avoid duplicating dirty block information in the background policy