[PATCH 1/3] ntdll: Factor out validate_context_xstate() function.