table: fix Fib::removeNextHopFromAllEntries invalidating NameTree iterator

refs #2177

Change-Id: I19b8234d94b804273404176d6751a91f082653b7