[SPARK-1021] Defer the data-driven computation of partition bounds in so...

...rtByKey() until evaluation.
Can we perhaps make this thread safe?