Leasing a blob and implementing distributed locks