Made specific tests use RAII-mutex locker.