Sydney prison officer charged over alleged inmate relationship