Change in ovirt-engine[master]: core: avoid db deadlock and unneeded db updates for images