Prevent nested calls to notification batches in the same thread