router: Fix unregister races in tests

Closes #183

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