Fixed possible concurrent access problem on pattern cache.
Merge branch 'master' of https://github.com/jgralab/jgralab