Added Threads::Exception which inherits from the core, got playground/pthread to use try and catch.
Updated Lock and Thread exceptions to use Threads::Exception
Added Deadlock exception, and modified lock to throw this exception on
DEADlock condition, Changed the playground src/pthread.cpp to test it
Added locking test.