stubs from ast don't require PsiLock, synchronize them just to prevent unnecessary concurrent calculation (IDEA-106567)
(cherry picked from commit fe814e7)