s3:locking: add downgrade_share_lease() helper function