Initialize stack_top when a new thread is created.