md: introduce link/unlink_rdev() helpers