Unbreak device extents when the device is not a zvol.

(cherry picked from commit 451a894fb93d65b20af1a32497794da34751108d)