Multistability of a coherent spin ensemble in a semiconductor microcavity