Add support for testing adaptive mutexes.