[SPARK-1021] modify range bounds variable to be thread safe