tests&examples: use sizeof(stack) in thread_create

fixes #1392
tests&examples: apply coding conventions to sizeof
test: remove superfluous stack size defines
Merge pull request #1393 from LudwigOrtmann/issue-1392

tests/examples cleanup