Multithreaded test case

Quick and dirty test case for multiple windows and multiple threads.

Work in progress. Proper error handling missing.

Try to get along with Android create/destroy surface semantics. Main
thread must wait for painter to finish before destroying surface.
Painter must wait for surface to be created.