Change _mark_failed to commit update to the action status before marking
the depended actions' status as failed.
This fixes a problem where a retry on deadlock for the depended action
was rolling back the update to the dependent action status.
Closes-Bug: 1808846
Change-Id: Icc4d6bf7034929eeb67d60d55b538b5f87bbba17