Allow passing KFilesystemStreamInterface object to copy() and flush().