kprobes: fix error checking of batch registration