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.

Change-Id: I3569d9d24505516b3f07364b7e238b4717706ac2