withLock

inline fun <R> Lock.withLock(crossinline block: () -> R): R