Implement seek as stream ioctl method

Per #949.