libmultipath: rework sysfs handling