waitUnlock

Will wait until the SmartMutex.lockStateFlow of this instance will be false.

Anyway, after the end of this block there are no any guaranties that SmartMutex.isLocked == false due to the fact that some other parties may lock it again