1. A computer-implemented method, comprising: receiving a request for a lock on a shared resource; in response to receiving said request: granting said lock on said shared resource to a lock holder, and establishing a lock lease period associated with said lock; determining, based on one or more requests for a lock on said shared resource that are received from other processes executing in a system, that said lock lease period associated with said lock needs to be shortened; and in response to determining that said lock lease period associated with said lock needs to be shortened, shortening said lock lease period associated with said lock.