md: tidy up status_resync to handle large arrays.