Use a global sequence for attachment ordering

This should fix an intermittent test failure when HTML and File
attachments are built in the same test without being given an explicit
ordering.