Function - Attempt to acquire access rights to a lock.
[in send right] The port naming the lock set which represents the lock.
[in scalar] The lock, represented by the lock set, to be acquired.
The lock_try function attempts to acquire the specified lock without
blocking. The return value indicates whether the lock was acquired.
The specified lock_set is invalid, or the lock_id is out of range.
The lock was acquired.
The acquired lock has an unstable state.
The specified lock has been destroyed.
Another thread currently owns the requested lock.
The calling thread already owns the lock.