Refactor Index API to move build() to a single method based on existing
calls.

Use beginBuild(), reserve(), endBuild() to implement Index::build().
This is a pre-requisite for the refactoring of the
recovery API to make recovery of data dictionary spaces more
straightforward.