An instance of this class is used to determine what to do in the event of a
lock conflict for a given object. If the timeout and retry values are >=0
then we use them to sleep the thread which tried to get the lock. If the
retry value is -100 (LockManager.waitTotalTimeout) then the thread will block
for up to the total timeout and be signaled either when the timeout occurs,
or when the lock is actually released.
Wait for the specified timeout and retry. We may either sleep the thread,
or block it on a mutex. Returns the time taken to wait.
public int wait (int retry, int waitTime)
Signal that the lock has been released.