write-commands: fix index of bulk write upserted index.

When merging upsertion information, the indexes could have contained
the actual offset of all mutations, not the index of the command that
contained the upsertion.

This fixes that, which also requires how many inserts we merged during
the mongoc_write_command_insert_append() call.