refix IDEA-121716 Deadlock on creating new project
(cherry picked from commit b06c2a7)