ukernel: handle pioctl errors properly in ktc