Fixed #277 - Prevent sync concurrency

What about `server/lib/sync-manager.js` for the filename?