Utility.cpp: Warn if Begin/EndLogBlock used improperly

Use a volatile int to keep track of block/non-block log modes.
Utility.cpp: Commentation add
test/thread: Slow down logging, minor tweaks
Merge branch 'develop-0.1.x' into develop-0.2.0