That's technically correct although apple can get into locked phones using other methods. Locked phones aren't locked when you can patch software to change the OS's behavior regarding how locked stuff is supposed to work.More importantly: Apple cannot give them the code, because they don’t have it.
The old "patch it out of existence" trick.