Add synchronization on gemspec creation. Fixes deadlock.

There was deadlock on gemspec creation for hosted repos. This *should* fix it.