Safeguarding Graph Neural Networks against Topology Inference Attacks