Fix wrong average duration on query that generate the most locks. Thanks to Pascal-b for the report.