Another minitrace test. Bugfixes, for example forgetting to init the mutex.
Cleanup