Fix incorrect metrics reporting for `renew_attestations` background task.