md: fix clearing of the 'changed' flags for the bad blocks list.