Use frozen hash keys in threaded.rb