implement RecordStoreSharedDBHeader

This is based on the reference implementation in RecordStoreSharedDBHeader.java, rms_shared_db_header_kni.c, and rms_shared_db_header.c.