On a codimension-four bifurcation occurring in optical bistability