Fix the problem that updates SIGCHLD handler in the test.

g_spawn_sync() families updates the signal handler for SIGCHLD to
wait for the exit of the child. This behavior invalidates the
signal handler of Hatohol.