In one embodiment of the invention, a first reference to a first object is
recorded in a first list when a first thread in a multi-thread
environment invokes a lock operation on the first object. A thread-safe
locking mechanism on the first object in the first list is restored when
a second thread is created.