fix(engine): move update co id logic to correct position

- before case object for subprocess executions was set
on the parent
improve(bpmn-data): persist an execution's case object id to the db

- fixes issues, if the execution is asynchronously continued
refactor(bpmn-data): case object determination for mi and subprocess