Retired Oakland police sergeant in court for sex-scandal case