Copy configuration when getting resources for a rotation

Avoids changing the orientation field on the current configuration.

Fixes: 189338162
Test: manual; kill sysui in portrait mode and make sure the context
returns `portrat` instead of `landscape`

Change-Id: I971daa9d332fb399b7801805af467fbf775cdb55
(cherry picked from commit 8213c706b71f16442316a9a02375e66835af5e5f)
1 file changed