libztex: prevent the double use of a work struct