Function - Acquire access rights to a lock.
[in send right] The port naming the lock set which represents the
[in scalar] The lock, represented by the lock set, to be acquired.
The lock_acquire function acquires access rights to a specific lock
being represented by a given lock set. If the lock is already
controlled by another thread then the calling thread will block.
The lock was acquired.
The specified lock set is invalid, or the lock id is out of range.
The acquired lock has an unstable state.
The specified lock has been destroyed.
While blocked to wait for the specified lock to become available, the calling
thread was awoken by an unrelated event, such as thread termination.