This method locks the mutex of the OMProtected object.
Public
inline void lock() const
The same thread can nest lock and free calls of the same mutex without blocking itself indefinitely. This means that OMOSMutex can implement a recursive mutex (that is, the same thread can lock twice and free twice, but only the outer lock and free count).