Add the BLK_DEV_WRITE_MOUNTED/bdev_allow_write_mounted check