Scheme for improving laser stability via feedback control of intracavity nonlinear loss