Docx writer: Renumber header and footer relationships to avoid collisions.

We previously took the old relationship names of the headers and footer in
secptr. That led to collisions. We now make a map of availabl names in the
relationships file, and then rename in secptr.