Fix segfault in _open and _set_xattr return code