set expiration time on lock