make sure that the sync thread is protected by a consistent lock
1 file changed