Fix task locking
When one or more tasks would error out while being created (they're started
before confirming creation of execution), it would lock out the execution
and tasks. This patch makes sure that the execution creation doesn't lock
when returning the execution details after creation, so error reporting
can happen without deadlock.