md: replace the RAID_AUTORUN ioctl with a direct function call