Lazily initialize $*THREAD