avoid deadlock in cache() during spec/cache loading
avoid deadlock in cache() during spec/cache loading

if we end up calling cache() from within the initialization of the base
context, we cannot wait for for the completion of that initialization
before we proceed, obviously.

Change-Id: If30c6f3665fe423e767373a8821c406b2f5e0eca
Reviewed-by: Joerg Bornemann <47777b9406dbddd02a3fdca8341789a013805a11@digia.com>
Reviewed-by: Daniel Teske <d8a411aec9a206efedb4d45b75fe8d13f1e2b628@digia.com>

richardmg/qtcreator,danimo/qt-creator,kuba1/qtcreator,farseerri/git_code,amyvmiwei/qt-creator,farseerri/git_code,darksylinc/qt-creator,Distrotech/qtcreator,xianian/qt-creator,Distrotech/qtcreator,xianian/qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,omniacreator/qtcreator,colede/qtcreator,amyvmiwei/qt-creator,richardmg/qtcreator,danimo/qt-creator,xianian/qt-creator,Distrotech/qtcreator,farseerri/git_code,danimo/qt-creator,AltarBeastiful/qt-creator,richardmg/qtcreator,colede/qtcreator,xianian/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,colede/qtcreator,darksylinc/qt-creator,AltarBeastiful/qt-creator,omniacreator/qtcreator,colede/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,maui-packages/qt-creator,farseerri/git_code,xianian/qt-creator,maui-packages/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,omniacreator/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,richardmg/qtcreator,darksylinc/qt-creator,danimo/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,richardmg/qtcreator,danimo/qt-creator,darksylinc/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,richardmg/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,kuba1/qtcreator,Distrotech/qtcreator,darksylinc/qt-creator,xianian/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,darksylinc/qt-creator,maui-packages/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,darksylinc/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,xianian/qt-creator,danimo/qt-creator,farseerri/git_code,danimo/qt-creator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,maui-packages/qt-creator,kuba1/qtcreator,colede/qtcreator,colede/qtcreator,richardmg/qtcreator,martyone/sailfish-qtcreator,colede/qtcreator,farseerri/git_code