[SCSI] scsi_debug: reduce duplication between prot_verify_read and prot_verify_write