split exit_syscall handler in functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>