Define data structures for internal thread-local "global" variables.