core: BatchAction should handle forks [GH-2756]