Controlling dynamic instability of three-level atoms inside an optical ring cavity