Avoid db deadlocks when updating action items.