[upstream] Fix for using '--disable-device-mapper' in parted-3.2.