GRAILS-11670 Throwing UnsupportedOperationException when subclasses of CriteriaBuilder don't implement readOnly.

Added a new Class to be used as the default implementation.