sg: fix oops in the error path in sg_build_indirect()