High-redshift Massive Quiescent Galaxies Are as Flat as Star-forming Galaxies: The Flattening of Galaxies and the Correlation with Structural Properties in CANDELS/3D-HST