update-workspace: reset the failed am/rebase processes