wined3d: Create fences when the command buffer is allocated.