Replace performance tests with a query count version.

Because time based performance tests are sensitive to the environmenti
they're being run in, it's difficult to make them reliable while still
having meaningful thresholds.

Replacing these with a test that checks the query count gives us a
reasonable assurance that these endpoints will have decent performance,
without relying on potentially flakey tests.

These tests use a threshold of 5 queries for these calls.  These
currently take 4 queries (publish_intent lookup, item lookup,
linked_items and translations), so this allows a little headroom for
future changes while still ensuring that we're not doing one query per
linked item.