added spinlocks to syscall