Synchronize scrooge compiler calls in SBT plugin.

When an SBT build contains more than one project that uses the scrooge compiler, a race condition will break the build in variously strange ways. Synchronizing the SBT tasks fixes this problem. 

Note that it is possible that this patch is overly conservative with synchronization, but it does fix the problem.