Fixed #277 - Prevent sync concurrency

I'm not sure it matters, since this is all internal to the server anyway.