Add thread_safe to Gemfile