vfio/mdev: add mdev available instance checking to the core