Enable x11 threading lock
Add multi-threading example script