Oops, fix a logging typo.
Add support for the clear stack thread attr.
Merge pull request #4059 from unknownbrackets/thread-funcs

Implement the clear stack thread attr