netifd: fix handling of "lookup main" for ip rules (#15315)