Updating the server patch and diff process.

- fixed concurrency issue in DiffSyncHandler with regards to connected
  clients.