[SPARK-2783][SQL] Basic support for analyze in HiveContext

JIRA: https://issues.apache.org/jira/browse/SPARK-2783
Sorry, didn't see this yesterday. Confirmed that the metastore handles concurrency correctly with a transaction of the underlying RDBMS.