block/iscsi: fix segfault if writesame fails