Update cpu-exec.c to use CPU_FOREACH.

Update `cpu-exec.c` to match convention introduced in recent qemu
HEAD where CPU_FOREACH is used instead of looping over each CPU
using a traditional for(...) loop.