thread: Do not disable interrupts unnecessarily while initializing stack.