migration/dirty-bitmaps: change bitmap enumeration method