s390/zcrypt: split ioctl function into smaller code units