Fixed #277 - Prevent sync concurrency

Inline this.