Two security officers locked up for inappropriate relations with inmates