GROOVY-5249 reduce locking in ClassInfo.getMetaClass(Object)
GROOVY-5249 call incVersion on all implementing / derived classes.
GROOVY-5249 ClassInfo refactoring: extract method isValidWeakMetaClass and use it also in getMetaClassForClass() method