When data stream sender is doing broadcast shuffle, it accumulate to batch size and then send blocks to destinations, but for local receivers, it ONLY send the current block, which will cause data loss. This issue is introduced by #22218. If #22218 is pick to 2.0 branch, then also need to pick this PR.