ISyncRepository, better locking