Many built-in callers of ActivateActCtx() just assume that it will always succeed. If it ever fails, then DeactivateActCtx() will notice that the cookie is invalid and raise an exception anyway.
Based on comment https://gitlab.winehq.org/wine/wine/-/merge_requests/2068#note_37340