GROOVY-5249 reduce locking in ClassInfo.getMetaClass(Object)

http://jira.codehaus.org/browse/GROOVY-5249

I update my GROOVY-5249 branch with force push, it contains an updated commit.