gtestutils: pass open file descriptors to subprocess
The subprocess needs to access the test_log_fd. If the file descriptors are not left open, functions such as g_test_message may stomp on file descriptors open by the subprocess and cause bad behavior of the test.
Please apply this to stable branches as well.