Ok, makes sense on why you are using it twice.
Is there any reason you need to lock memory? What did you intend to lock (LPM, SPM, app section, boot section, etc)?
According to AVR Studio, 0xff is the setting for unlocking everything. 0xCF is what I use to lock the boot section entirely.