Add socket-cdef and use it instead of ljsyscall.