Create stacksz.c

Compute stacksize of a thread.