Add support for the getsid syscall

This is small step towards fixing issue #1053. Midnight Commander uses getsid() syscall so it doesn't fall into category "syscalls that no-one ever uses in practice".