Attempt to fix kmem_default leaks

Additionally, attempt to empty the heap (connected to kmem_default) on
SPL unload, to release the last leaked memory.