Replace ThreadSafe::Hash with ThreadSafe::Cache

See https://github.com/headius/thread_safe/issues/15#issuecomment-25448097