Fix flaky N+1 REST API spec

What does this MR do and why?

This MR reintroduces a warmup call in the REST API spec to prevent flaky behaviour observed in some spec runs (e.g. https://gitlab.com/gitlab-org/security/gitlab/-/jobs/14891128726#L4323)

References

Screenshots or screen recordings

Not provided

How to set up and validate locally

bundle exec rspec spec/requests/api/work_items_spec.rb

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading