Address QueryCacheTest#test_query_cache_does_not_allow_sql_key_mutation failure
Address QueryCacheTest#test_query_cache_does_not_allow_sql_key_mutation failure

This commit addresses this failure.

```ruby
$ cd activerecord
$ ARCONN=postgresql bin/test test/cases/adapters/postgresql/composite_test.rb test/cases/query_cache_test.rb  -n "/^(?:PostgresqlCompositeWithCustomOIDTest#(?:test_column)|QueryCacheTest#(?:test_query_cache_does_not_allow_sql_key_mutation))$/" --seed 50299
Using postgresql
Run options: -n "/^(?:PostgresqlCompositeWithCustomOIDTest#(?:test_column)|QueryCacheTest#(?:test_query_cache_does_not_allow_sql_key_mutation))$/" --seed 50299

.F

Failure:
QueryCacheTest#test_query_cache_does_not_allow_sql_key_mutation [/home/yahonda/src/github.com/rails/rails/activerecord/test/cases/query_cache_test.rb:395]:
0 instead of 1 queries were executed..
Expected: 1
  Actual: 0

bin/test test/cases/query_cache_test.rb:389

Finished in 0.096603s, 20.7033 runs/s, 72.4617 assertions/s.
2 runs, 7 assertions, 1 failures, 0 errors, 0 skips
$
```

Fix #45108

Co-authored-by: Jean Boussier <484ba99a5d5a5fe782b11ea1b46f69a34139f585@gmail.com>

kmcphillips/rails,MSP-Greg/rails,Edouard-chin/rails,MSP-Greg/rails,Erol/rails,Erol/rails,Edouard-chin/rails,BlakeWilliams/rails,Erol/rails,esparta/rails,rails/rails,esparta/rails,kmcphillips/rails,Erol/rails,yawboakye/rails,BlakeWilliams/rails,yahonda/rails,georgeclaghorn/rails,Edouard-chin/rails,rails/rails,BlakeWilliams/rails,rails/rails,yahonda/rails,Edouard-chin/rails,MSP-Greg/rails,georgeclaghorn/rails,kmcphillips/rails,rails/rails,georgeclaghorn/rails,esparta/rails,yahonda/rails,yahonda/rails,MSP-Greg/rails,georgeclaghorn/rails,esparta/rails,yawboakye/rails,BlakeWilliams/rails,yawboakye/rails,yawboakye/rails,kmcphillips/rails