Fix race condition in RoutePathReplicator

Change-Id: I401aa26223aee1ae2dad38d2d8b663da238635a3