Constructs a CXlLock object and optionally locks the target CXlLockable object
CXlLock( CXlLockable& lockable, bool initialLock = false );
A reference to the CXlLockable object to which this lock will be applied.
If this parameter is true, then the lock will be applied immediately. If the target CXlLockable is already locked, then the thread calling this constructor will wait until it has been unlocked.
If initialLock is false, then the lock will not be applied until the Lock() method is called.
This method constructs a CXlLock object.