[PATCH 4/9] selftests/x86/xstate: Refactor context switching test