PixelSyncIterator descriptions says: "syncs the pixel iterator"
My natural instinct is to ask
a) syncs it to what?
b) why did it get out of sync?
PixelSyncIterator
You must sync the pixel iterator after you update any pixels to ensure your updates are pushed to the pixel cache. See http://magick.imagemagick.org/script/architecture.php.