Implemented sleep syscall handler