Avoid concurrent sync attempts from the same replica in the client (#4451).