Add WaitForIndexing.

Change-Id: I5a5c975c4246632f937413322c855bbe63d00802