I'd take the lock out of the door and disconnect the two attachments to the sliding bolt rods.
Put the cylinder back in and try again. If it won't double lock you'll need a new lock. The cylinder tab should revolve 360° freely in either direction when out of the lock.
If it does then the bolt rods are fouling on somethink/knackered.