Expose `isLocal` in SparkContext.