Quark-mass dependence of the three-flavor QCD phase diagram at zero and imaginary chemical potential: Model prediction