check_loop: only count full devices, ignore partition devices

If the loop device has partition(s) on it, they are represented
as the special device loopXpY. Original script counted them as
devices too.