Returned pagination data is wrong when querying with `locale=*`
### Node Version

22.12.0

### NPM/Yarn/PNPM Version

11.0.0

### Strapi Version

5.6.0

### Operating System

Windows 10

### Database

SQLite

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

I have an internationalized content-type called blogpost in my strapi instance. There are 2 available locales, `sv` and `en`.
It has fields `title`, `text` and `images`, and I'm using a short text field for `slug` (I want localized entries to share slug so I couldn't use UID).

When querying the rest api for entries of both locales, using the parameter `locale="*"`, the pagination data is returned with correct counts for `page` and `pageSize`, but `pageCount` and `total` are reported as 0, even though data was returned by the query.

Example of broken query, this runs in my sveltekit project:
```ts
let query = qs.stringify(
  {
    locale: "*",
    fields: [
      'slug',
      'title',
      'documentId',
      'createdAt',
      'updatedAt',
      'text',
      'locale'
    ],
    sort: 'createdAt:desc',
    pagination: {
      page: 1,
      pageSize: 2
    }
  },
  {
    encodeValuesOnly: true,
  })
let url = PUBLIC_API_URL + `/api/blogposts?${query}`;
let posts = await (await fetch(url)).json()

console.log(posts);
```

The output of the `console.log` call is:
```ts
{
  data: [
    {
      id: 53,
      documentId: 'rzhm8dgw9yhyt78r48vrvyii',
      slug: 'whats-up-1',
      title: 'whats up',
      createdAt: '2025-01-18T23:16:28.827Z', 
      updatedAt: '2025-01-18T23:16:46.480Z', 
      text: [Array],
      locale: 'sv'
    },
    {
      id: 50,
      documentId: 'sfrh1kpwtlkfh6k8fuy6s9gx',
      slug: 'whats-up',
      title: "what's up",
      createdAt: '2025-01-18T23:15:41.866Z',
      updatedAt: '2025-01-18T23:15:41.866Z',
      text: [Array],
      locale: 'sv'
    }
  ],
  meta: { pagination: { page: 1, pageSize: 2, pageCount: 0, total: 0 } }
}
```

If I remove the `locale="*"` parameter, or set it to either "en" or "sv", the pageCount and total are reported correctly.

Working query:

```ts
let query = qs.stringify(
  {
    //locale: "*",
    fields: [
      'slug',
      'title',
      'documentId',
      'createdAt',
      'updatedAt',
      'text',
      'locale'
    ],
    sort: 'createdAt:desc',
    pagination: {
      page: 1,
      pageSize: 2
    }
  },
  {
    encodeValuesOnly: true,
  })
let url = PUBLIC_API_URL + `/api/blogposts?${query}`;
let posts = await (await fetch(url)).json()

console.log(posts);
```

output of `console.log`:

```ts
{
  data: [
    {
      id: 53,
      documentId: 'rzhm8dgw9yhyt78r48vrvyii',
      slug: 'whats-up-1',
      title: 'whats up',
      createdAt: '2025-01-18T23:16:28.827Z', 
      updatedAt: '2025-01-18T23:16:46.480Z', 
      text: [Array],
      locale: 'sv'
    },
    {
      id: 50,
      documentId: 'sfrh1kpwtlkfh6k8fuy6s9gx',
      slug: 'whats-up',
      title: "what's up",
      createdAt: '2025-01-18T23:15:41.866Z',
      updatedAt: '2025-01-18T23:15:41.866Z',
      text: [Array],
      locale: 'sv'
    }
  ],
  meta: { pagination: { page: 1, pageSize: 2, pageCount: 3, total: 6 } }
}
```

### Steps to Reproduce

1. Enable internationalization with 2 locales (I use `en` and `sv`)
1. Create a content-type with internationalization enabled on it
1. Enable the public user to `find` and `findOne` on this content-type
1. Create an entry of this content-type, and create and publish both locales for that entry
1. Query the REST API for entries of **all** locales for the content-type. This is done by including the `locale=*` parameter in your query. 

Observed behaviour: The query correctly returns the entries (in `data`), but the accompanying pagination data (in `meta`) is wrong.
If you created 1 entry and published 2 locales, the returned pagination data of this query is:
`{ page: 1, pageSize: 25, pageCount: 0, total: 0 }` 

### Expected Behavior

Expected behaviour: If you created 1 entry and published 2 locales, the returned pagination data of this query should be:
`{ page: 1, pageSize: 25, pageCount: 1, total: 2 }` 

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).