GRAILS-11614 Implement use Java delegating metaclass for Groovy proxies

Updated Pull Request against 3.x branch.