[PATCH OLK-5.10] virtio_pmem: Check device status before requesting flush