Set global stack on threads.