[PATCH 1/1] tests: Make sure only one thread prints traces at a time.