This commit implements the `mail.tracking.duration.mixin` with the `statusbar_duration` widget for `crm.lead` and `project.task`. The goal is to compute and display how long a record has spent in each stage in the statusbar of their form view. Task-3032773 Part-of: odoo/odoo#108554