How are electronic systems locked and connected in the electronic bay?
The LRUs are attached to trays which house the electrical connectors and the cabling behind them:

source

The hold down mechanisms vary in design, but it appears they generally attach the LRU to the tray at the front, the back likely being held in by the electrical connectors at the back.