libknc: add knc_put_mmapbuf()

This is a utility function which mmap(2)s a region from a file and
puts it on the input side of one of the streams.
libknc: fix quick memory leak.