Added locks for replays

Each battle can now only be attached to one "object" per a clan, be that
a battle or a match; thus avoiding cases where two replays from the same
battle could be attached to two different objects, creating confusion
(mostly an issue for matches).
Updated Revoke to Limit Code