From Harm to Help: Turning Reasoning In-Context Demos into Assets for Reasoning LMs