altmbr: fix accounting of logical partitions