bridge: Optimize iface_lookup() and port_lookup_iface() with a hash.