fix shutdown leaks
Fix aio_write_threads isn't always freed; handle this without listing every network backend that uses it to avoid regressions.
Implement and use chunkpool_free(). (It's difficult to trace real leaks with this stuff causing red herrings in Valgrind output.)
Also available in: Atom