Shorten and simplify some of the loops in pfxlist_onlink_check().
No functional change intended.
MFC after: 1 week