If the fire alarm is activated, Sid will attack even if his cell was already open. Sid will also become hostile if the door is "unlocked" through the terminal after the cell door is picked open.