modify test_pipe.c

not using mutex to protect reads from pipe
change structure of main