gallium: fix surface object memory leak in cso module