As md(4) may be a loadable module, use function pointers for access to
kern_mdattach and kern_mddetach. In general, this pattern poses a small
risk of races with unload, but that should not be a concern in the
mountroot code path.
Remove support for calling MDIOCATTACH from the kernel.