important bug fix: atomically do queue operations in pdfRendererMain.