"We're going to have to try and tackle him," he whispered to Ron. They had no choice: the moment anyone entered the room and saw the absence of three prisoners, they were lost. "Leave the lights on," Harry added, ...
Harry Potter and the Deathly Hallows
What does "they were lost" mean in this context? Is it they were dead or something? It doesn't seem to make much sense.