Fix bugs and race conditions in Union Station tests
Change log format.

The time is now shown before the filename to make comparison of many log entries easier.
The thread ID is now shown in hexadecimal to make log entries shorter.
Fix the EVENTUALLY macro in unit tests.

The code body should be executed inside its own scope so
that RAII destructors are properly called before sleeping.