xseg: Fix condition when checking for valid fd