Various tests on the mutex structure status after performing some lock and unlock operations. The test expects that the internal mutex status is consistent after each operation.