[SPARK-2917] [SQL] Avoid table creation in logical plan analyzing for CTAS

It's a little bit different with `EliminateAnalysisOperators`, what we need here is the `MetaStoreRelation`