tests/examples cleanup

- use sizeof(stack) in thread_create (fixes #1392)
- apply coding conventions to sizeof
- remove superfluous stack size defines