Fixed an issue where recursively calling replicate can result in redundant syncs being sent for the same log index.