Don't use the CoreUI private framework when sandboxed (i.e., for App Store)

This conditionally reverts 0c7e6080519014f1fb345ed25e2f12c9a043b3ae.

Change-Id: I462016cd43c489fced7fb3739aa98c521d52f78e