Temporarily disable panic() in kmem error.
Move current_thread out of kmem.c into the appropriate SPL files.