[PATCH net-next v3 12/15] selftests: forwarding: lib: Move smcrouted helpers here