> I'd put this after making the updates to origin, otherwise we'd miss updating the stacklet_h.

Do you mean that by setting the current fiber in the thread dict, the origin fiber could be garbage collected?