Adds WIN32-threaded example.
Fixes lock_guard to work correctly.