dasd_ioctl: do not call close() on invalid fd

We only should be calling close() if the corresponding open()
succeeded.
Spotted by coverity.

Signed-off-by: Hannes Reinecke <hare@suse.de>