B -physics anomalies: The bridge between R -parity violating supersymmetry and flavored dark matter