perf thread-stack: Allocate an array of thread stacks