Added inline modifier to syscall methods
Avoid deadlock by introducing loop in hwslot_suspend_thread
Oops, forgotten to remove sleep for testing race condition
Moved state change to macro