CA-106886: Synchronise when updating a VDI's configuration in XAPI.

SR.scan and the GC must synchronise with each other when trying to
update a VDI's vhd-blocks member in the XAPI database.

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>