Initialize runtime data structures for a thread.
Must be called on the target thread itself during startup, to verify stack limits are setup correctly.