You won't need the central locking unit. You need a key or the chip from within the key, The transponder unit from around the Ignition switch and the Engine ECU and hopefully the Immobilizer code should you need it at a future time.
The problem with buying a secondhand unit is, it is another 'unknown quantity'
Don't buy a secondhand ECU on its own, unless it has been 'uncoded' on the original car it is completely useless.