Fix ThreadPool._remove_timeout_handler() method