msvcrt: When operating on a closed pipe, read() should return 0, not -1. Add tests to make sure read() and fread() work right on closed pipes.