Catalyzes the release of L-lysine from [LysW]-gamma-L-lysine and the release of L-ornithine from [LysW]-L-ornithine. [amino-group carrier protein]-C-terminal-gamma-(L-lysyl)-L-glutamate + H2O = [amino-group carrier protein]-C-terminal-L-glutamate + L-lysine [amino-group carrier protein]-C-terminal-gamma-(L-ornithyl)-L-glutamate + H2O = [amino-group carrier protein]-C-terminal-L-glutamate + L-ornithine Binds 2 Zn(2+) or Co(2+) ions per subunit. Amino-acid biosynthesis; L-lysine biosynthesis via AAA pathway; L-lysine from L-alpha-aminoadipate (Thermus route): step 5/5. Amino-acid biosynthesis; L-arginine biosynthesis. Belongs to the peptidase M20A family. LysK subfamily.