Store worker pool statistics on task completion / worker shutdown
We need this in order that the provisioning process can efficiently determine how many seconds have been spent for a given worker pool, either globally or on behalf of a given scope.
Part of #721 (closed).