[Ide] Fixed a dead lock problem while updating the type system.