writeLock

fun writeLock(sharedResource: SharedResource)
fun writeLock(sharedResourceName: String)

Adds a write lock to specified shared resource