||= is not thread safe
Fixed an issue with building git gems in parallel

We need to ensure that the dir remains the same
through out the installation of these gems,
this includes Path Installer as well as rubygems
build.
Merge pull request #3259 from bundler/race_condition

Fixing a race condition while installing git gems with multiple jobs