Add cairo thread test
This adds a test for multithreaded rendering to the cairo backend.
This can be used to demonstrate the robustness of multiple threads using the cairo backend. One I am satisfied it is robust I can look at implementing threading in pdftocairo. This would require a major refactor so I don't want to do that until the multithreading has been thoroughly tested.