Fix a memory leak bug.
Add name to kernel threads.