Fix race condition in RoutePathReplicator

Change-Id: I88e111bc92c72ed575d73cc57c48eacb2bb8004f