Replace global Hash with TS::Cache.

Conflicts:
	actionpack/lib/action_dispatch/journey/visitors.rb
Make GTG::TransTable thread safe.

From now on only the `[]=` method is allowed to modify the internal states hashes.