836261b85a
First, move the OPAL_THREAD_LOCK out to the same level as its corresponding UNLOCK. It was possible to hit the UNLOCK without ever acquiring the lock. Since the OPAL_THREAD_ADD64() is now protected by this lock, we can just do the decrement non-atomically. This commit was SVN r11958.