[PATCH v3 4/8] ntdll: Factor out xstate_from_server() function.