Added expiration of locks with a configurable expiration time period.