* Updated Semaphore::cancel() not to delete the object.
* Changed Thread class to disable the detach state as default.
* Added some log messages for unit testing.