Allocate thread stacks with guard pages