send.c: generate prefix list at a higher level

Generating the list *can* be slow, so moving the list generation
code up a few levels in the call stack allows it to be reused for
configurations with a client list.