Optical bistability and first order phase transition in a ring dye laser