more efficient implementations for instantLock and instantTryLock
add method to determine the "intention mode" of a lock mode
2 files changed