fixing "dispatch thread assertion": id-to-key index may be created not only on startup, but as a part of certain index rebuild procedure
one part of http://youtrack.jetbrains.com/issue/IDEA-105815
(cherry picked from commit 3ac858d) [r=Konstantin.Bulenkov]