RUBY-543 stop using thread local, start pruning dead threads