[SPARK-3861][SQL] Avoid rebuilding hash tables for broadcast joins on each partition