To get the tailgate unlocked, just go in from the back seat and move the lever on the back of the lock to the other side. The button will work as normal.
Then, remove the central locking rods if attached, pull the u-clip from the back of the lock and then remove the barrel. Replace with your one and refit accordingly. 3 minutes, tops.