Fix race in IndexLookupTest with getting the test index online
Merge pull request #3561 from chrisvest/2.2-fix-indexlookuptest-flakiness

Fix race in IndexLookupTest with getting the test index online