Remove unused imports in ThreadController and thread_controller_test