md/raid1: improve handling of pages allocated for write-behind.