[safestack] fixes build issue
[safestack] fix spelling
[safestack] add some regression tests

They triggers unsafe stack allocation on single and multi threaded
processes.
They read/write from the safe stack and from the unsafe stack.