Added RAII-locker class, trying to clean up mutex use in the test
fixture.
Inject segfault if fixture fails to free fixture mutex, making it
possible to drop directly into debugger.