Join killed threads to ensure clean up

MSP-9425

Call Thread#join after Thread#kill to ensure that the killed thread dies
completely and is removed from Thread.list.