libknc: implement simple pool allocator for certain structures.

struct stream_bit's are allocated and deallocated with quite some
frequency leading to the repeated call to calloc(3).  Buffers are
also allocated with some frequency.  We implement a simple pool
allocator with fallback to calloc(3) to reduce the overhead.