fix deadlock IDEA-114726 [r=Peter.Gromov]