Add synchronization on gemspec creation. Fixes deadlock.