fix deadlock in BatchValidationHandler