save thread_routine return value