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