Friend of Charleston church massacre suspect pleads guilty