ISPN-4719 Race condition in QueryCache initialization