vlib: map thread stack instead of allocating them from heap