Made legacy indexes wait for availability check.

- Add availability wait in hagdb.index()
- Bump default database availability timeout to 120s, to account
  for time to copy store.
Merge pull request #2206 from jakewins/1.9-availabilitycheck

Made legacy indexes wait for availability check.