vfs: make sure we still empty the buffer when reading a pipe that has no more writers.