MdeModulePkg BdsDxe: Correct VariableLockProtocol usage to match code logic