xseg: Propagate errno for xseg_join

Propagate the correct errno to the caller of xseg_join function.