For Event Augmentation with SharedWriter, fix building FriendTree index
This moves building the index from the SharedWriter to APR, as in SharedWriter mode the file is re-opened/updated to write metadata and otherwise loses the event tree index.
This moves building the index from the SharedWriter to APR, as in SharedWriter mode the file is re-opened/updated to write metadata and otherwise loses the event tree index.