wined3d: Register a window only once.