libmultipath: get_uid: straighten the fallback logic