Revert "kthread: bring in some hammerhead code"

This reverts commit d39c984c5e07b3612d336cfa29683bb336376301.