Fix race condition in RoutePathReplicator

Change-Id: Ibbe237ab540c381afafa11e26305e3029edc623e