updated Kthread.finish() to complete join() implementation