Thread safety fix for Batch constructor