- Refactoring thread space code
- mutex should call test_and_set in kernel scope; so implemented a syscall for it