[RFC PATCH v1 3/6] badblocks: improvement badblocks_set() for multiple ranges handling