HIVE-8945 - Allow user to read encrypted read-only tables only if the scratch directory is encrypted (Sergio Pena via Brock)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/HIVE-8065@1641007 13f79535-47bb-0310-9956-ffa450edef68