Improvements to ZMQForkJoinAdapter, made num batches configurable