Just to be clear, I’m talking about bootloader unlock (so you can root it and install custom ROMs) not carrier unlock. Normally Sony offer bootloader unlock codes on their website, but not for US models.
Carrier (network) lock and unlock is done by the carriers, manufacturer doesn’t care.