Check setuid() and getuid() for errors

Thanks to Hector Marco for reporting.


git-svn-id: http://svn.irssi.org/repos/irssi@5228 dbcabf3a-b0e7-0310-adc4-f8d773084564