Standard remote locking on the XJ isn't connected to the horn. It's likely you have an aftermarket alarm fitted, you'll have to find the horn connection and disconnected it. Likely place to look will be around the steering column loom.
Alternatively unhook the horn completely, it's behind the bumper on the drivers side. Technically unroadworthy though