Make router.c relay-only

In #32123 (moved), we disabled one function in router.c when the relay module is disabled.

But we should disable the whole file.