Fix race condition in time-to-start metric
Fix race condition in time-to-start metric

by recording the start time with before_task_publish instead of after_task_publish

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq