Mitigating Fine-tuning Risks in LLMs via Safety-Aware Probing Optimization