Memory-augmented Query Reconstruction for LLM-based Knowledge Graph Reasoning