Fix thread race in win8 version of plugin

Sometimes the print preview would only display a blank page