1. A method comprising: recording a first reference to a first object in a first list when a first thread in a multi-thread environment invokes a lock operation on the first object; and restoring a thread-safe locking mechanism on the first object in the first list when a second thread is created.