1. A computer program product comprising: a computer readable storage medium; and computer usable code stored on the computer readable storage medium, where, if executed by a processor, the computer usable code causes a computer to: create an orderable lock for a disclaimable lock in response to a request to release the disclaimable lock, wherein the request is made by a disclaiming thread that holds the disclaimable lock; instruct the disclaiming thread to release the disclaimable lock when the orderable lock is created; determine, if the disclaimable lock is not held by a thread, whether a current thread that attempts to acquire the orderable lock is associated with the orderable lock, wherein the current thread is associated with the orderable lock if it is the disclaiming thread; and grant acquisition of the orderable lock to the current thread if the current thread is associated with the orderable lock.