Ex-sheriff, facing life for rapes, pleads guilty to bribery