add code for index_open.   compiles, but I need to review the
BRI locking protocol.  e.g. should global_from_stream be locking
the BRI?