setup syscall module using critical section