ent thread T's thread id to T's
current stack frame.

This function should be used for specialized purposes only.