hw: virtio-pmem: detach the element fromt the virtqueue when error occurs