gallium: add type parameter to create_fence_fd