Backport: Fix restoring and backing up of volumes using RBDDriver

The RBDDriver inhertis from the io.RawIOBase which must be closed
otherwise Python will autoclean and call flush() on rbd image that
has been closed.