Mark SparkConf as read-only after initialization