Attempt to use two cores to do sorting.  Unfortunately, instead of making sorts
go faster as was hoped, this changes slows sorting down by about 10%.
Changes to the thread routines to disable them when threading is turned
off using sqlite3_config().
Merge in all the latest trunk changes.
Do not let the multi-core sorter use lookaside memory, which is not
thread-safe.