followups from #3493
Now that the minimal fix for the statistics channel overread issue has been merged to the public repository, related code that was written while fixing it can be made public as well:
- further cleaning up httpd.c
- adding assertions to the
ISC__BUFFER
macros - changing
ISC__BUFFER
macros to static inline functions in 9.19 and 9.18