Combined explanations of B-physics anomalies: the sterile neutrino solution