This looks like a PCB edge-connector socket with some sort of retention mechanism on the ends. Is the cable attached to a PCB paddle board? Unless there is hardware (latches, whatever) on the mating piece, it does not appear that there is anything on the socket that would allow you to "open it and lock the cable in place."