[SPARK-4847][SQL]Fix "extraStrategies cannot take effect in SQLContext" issue