routing: fix build without ROUTE_MPATH
MFC after: 1 month
(cherry picked from commit 685866bbe13da2b9c5d108036c29f07a4c7cd04f)