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