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.