Rename the sendfile() function to kern_sendfile() and extend it with two
function pointer arguments to copy in the header/trailer structure and
the create uio's for the header and trailer as required. Use this
to allow the removal of freebsd32_do_sendfile() which was a nearly
idential duplicate of sendfile() with attendant synchronization cost.
In the process, restyle calls to kern_sendfile to use compound literals.
Effort: CHERI upstreaming
Sponsored by: Innovate UK