DF Robot Electronic Solonid Lock Relay Pinout
As is shown in this photo of the underside of the DFRobot relay module the third terminal is not connected to anything.

In your case it is just used to connect the two black wires together.

So in your circuit the tred wire is switched by the relay contacts and the black wire is connected directly to the lock.