Fix expired cart cache deletion logic to avoid racing condition