[XFS] Switch kernel thread handling to the kthread_ API