[PATCH openEuler-1.0-LTS 046/109] dm table: fix iterate_devices based device capability checks