Control of lasing from a highly photoexcited semiconductor microcavity