virsh.capabilities: fix bug for SMP machines

For machines that have more than one processor we must count all cores
for each processor to get the correct number of cpus.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Merge pull request #11 from Antique/virsh-capabilities

virsh.capabilities: fix bug for SMP machines