GRAILS-11670 - Adding readOnly to the Criteria interface and implementing on the hibernate implementation.