create a Gemfile for threadsafe AR
conditionally include threadsafe hack