Add thread-associated data to type