Hi
The ports should not be locked.
Are both ends connected? If not connect both ends and run the command "show interface ethernet <port#>" to check if the port is up.
There was a bug in Mellanox OS that caused the following:
When the cable is removed the "show interfaces ethernet transceiver" command then properly shows no information for this cable.
When the cable is re-installed, the "show interfaces ethernet transceiver" command no longer shows the information for this cable.
If a switch is powered up without cables present in the port and then a cable is installed, the "show interfaces ethernet transceiver" command does not the information for this cable.
This may be your issue.