[PATCH OLK-6.6 v2 11/66] md: merge the check of capabilities into md_ioctl_valid()