add unit test
fixed bug of thread module
fixed bug of Thread in windows platform
add unit testing for locker
improved the implementation of unit test for locker module