I would think I'd use a skill challenge like approach, rather than a simple skill ckeck.
The rogue works as quickly as she can to get the lock open.
Complicated multistage locking system, must get 4 success before 2 failures.
Success: Lock Opens. 2 Elite Soldiers appropriate to the location are behind the door. No surprise round.
Failure: 2d4 minions and 1d4-2 swarms appropriate to the location enter the scene, perhaps at random, perhaps to secure the door. Each minion, but not the swarms, has +1 bonus to damage on all attacks per failure incurred. i.e. minions spawned on the initial failure do +1 damage. The lock resets.
Player may attempt to open the lock as often as she wants until she is successful.
..... sorry, just daydreaming.