gateway: simplify and inline olsr_find_gateway_entry