Unlocks the specified mutex.
The function implements a behaviour of the mtx_unlock function defined in the ISO/IEC 9899:2011 (aka C11) standard.