Instead of locking, make it a slower capture time (Subject to balance). Perhaps more than one flag lock could be placed at a time (limited 1 per demigod per 5 minutes or such). More Demigods would offset the slow effect.
Example 1. You captured the flag and put down your 1 flag lock which has a 5 minute timer and a 5 minute cooldown (per player). An enemy demigod comes to capture. He has to spend twice the time to capture the flag back because of the lock. 2 Demigods could capture in the normal time for 1. 3 Demigods capture as if there were 2 demigods present.
Example 2. Like Ex 1, you capture and put down your lock. Your teammate comes and puts down another lock. Now, 1 enemy demigod would have to spend 3X time to capture. 2 Capture as if there were no lock present. 3 capture as if there were 3 present.
Its a combination of most of the presented ideas, with one key exception. The flags can still be captured, albeit slower.