Call BuildIndex() when opening APR IndexContainer for reading
Should help in rare cases where the index is in a bad state like reported in ATLASRECTS-7121
(cherry picked from commit a532f4ee) copied by hand from master
- conflict due to missing some indexing changes added in the meantime