Move distinctId assigment out of async block

To make sure events are always tracked with the current user.

[#70693386]