make errorp more robust.
- mutex around printing of stack.