ntdll: Add helper functions for getting and setting thread context through the server.