Make static variables used in DocBook output thread-safe.
Whoops. Forgot to add before amending commit.