eliminate use of cached pid from thread structure