[contactsd] Small bugfixes to setting up signal handlers

setupUnixSignalHandlers() had a wrong check for the return value of sigaction(), and didn't initialize the sa_flags member.

I verified that this fixes the bug where it segfaults after getting a SIGTERM.