router: Fix discoverd registration races in tests

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>