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