wininet: Use LIST_FOR_EACH_SAFE in a loop where we can delete an entry.