md: fix regression with re-adding devices to arrays with no metadata