CLOUDSTACK-7832: Move some job db update and item purge to
    completeAsyncJob transaction to avoid MySQL deadlock.