wined3d: Use a single allocation for timestamp queries.