[SPARK-4815][SQL] Fix: ThriftServer use only one SessionState to run sql using hive

Use a `SessionState` map in `HiveContext` to store all of the session states to the thread id.
The session state  will be updated when open a new hive session and close the session