vfio/type1: use memseg walk instead of iteration