posix_openpt tests: Fix test failure on Haiku. * tests/test-posix_openpt.c (main): On Haiku, create a child process and call setsid().