Fix race condition in RoutePathReplicator

Change-Id: Ifddf2e8f4657c31c81edb95663f7ee5131a69670