cockpit: All processes and tests ignore SIGPIPE.

Make sure all processes and tests (except for some testing mock processes) ignore SIGPIPE.
Replace g_test_init() with cockpit_test_init() in the main of test-machines.

Fixes #716