Joint Selective State Space Model and Detrending for Robust Time Series Anomaly Detection