Thread-safety patch for Printer