California Supreme Court Associate Justice Martin J. Jenkins, the first openly gay person named to the state’s highest court, will retire at the end of October.