zmonitor_v2: Improve error handing in constructors
zmonitor_v2: Assert constructors in test
zmutex: Check allocation in constructor
zmutex: Assert constructor in test