moved thread data indirection table initialization and added loop to set all entries to zero