Add zmutex to assertions to check for nullptr mutexes