Issue #3350249 D10 compatibility: Entity queries must explicitly set whether the query should be access checked or not
Closes #3350249