Track string allocation from threaded.rb

Before: 1,075,171
Use memoized, constant keys in threaded.rb to reduce string allocation

After: 102
Remove temporary string allocation tracking
Merge pull request #3745 from collectiveidea/threaded-string-allocation

Allocate far fewer strings from threaded.rb