wined3d: Only try to acquire a context in surface_cleanup() if there are GL resources...