Function - Release ownership of 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 released.
The lock_release function release the ownership of the specified lock.
If the calling thread does not own the lock then the call will fail.
The specified lock_set is invalid, or the lock_id is out of range.
The specified task does not own the specified lock.
The ownership of the lock was released.
The specified lock has been destroyed.