CLOUDSTACK-7683: hold a db lock during vm expunge
CS-27148 system vm image build process, needs to build an old version of qemu image, otherwise, it won't work on RHEL 6 Reviewed-by:Frank
Handle the case where the volume a snapshot was created from is removed from the database