Fixes memory leak in qfree()

Note that apipe doesn't know the memory was kmalloc'd, so qfree needs to
do it.
Fixes double-counting in qget()

qremove() already decreases dlen and len.  The original qget() doesn't
call qremove(), hence the extra accounting.