Add kthread stop API.
Make kthread stop check interval a property of the thread.