pf::iplog::mac2ip now accepts a lookup table

In order to avoid performing many SQL queries in
pf::ipset::generate_mangle_rules, we now fetch all open entries from the
iplog table to build a lookup table that we pass to pf::util::mac2ip.