Constraining rare B decays by $\mu^+\mu^-\to tc$ at future lepton colliders