Fix allocation of TRI_doc_mptr_t structs.