md: centralise all freeing of an 'mddev' in 'md_free'