Thread updated and added mutex with scope lock

Thread can now be created with a runnable object.
Mutex for WIN32 added.
Scope Locking class for mutex created.