GROOVy-6471: add a priviledged action wrapper for getDeclaredMethods
GROOVY-6512: add priviledged block for the creation of InnerLoader in ProxyGeneratorAdapter