Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting