Fix job duration reported in metrics in usage logs

There are still some cases when the job duration reported by Runner in the Prometheus metrics, logs and usage logs is not correct. Especially for the metrics it's a problem, as the negative number that shows from time to time makes some aggregations invalid.

We've tried to fix it previously, but there are still some cases when it happens. These should be fixed.