Phase-separation control of K$_x$Fe$_{2-y}$Se$_2$ superconductor through rapid-quenching process