Fix possible deadlock in TaskRunner.collect_updates.

Testing Done:
Filed https://issues.apache.org/jira/browse/AURORA-709 to track adding test
coverage for this.

Bugs closed: AURORA-669

Reviewed at https://reviews.apache.org/r/25175/