[RFC PATCH v1 4/6] badblocks: improve badblocks_clear() for multiple ranges handling