A level-set approach for simulations of flows with multiple moving contact lines with hysteresis