Towards Convexity in Anomaly Detection: A New Formulation of SSLM with Unique Optimal Solutions