First, the question: How is indefinite time to complete an objective handled, when it is not a question of skill, but a question of luck?
Example: Let's say that a character is attempting to unlock a door. The DC to unlock the door is 30. The character has a Open Lock modifier of 10, and therefore to open the lock it would require the character to roll a 20.
However, the character is under no pressure to open the lock. There is no risk of being caught. Theoretically, the character could spend hours, maybe even weeks attempting to open the lock. Now, the character - given enough time (and enough rolls) has the ABILITY to open the lock, it is just a question of how lucky he is on each attempt.
How are situations like this handled? Is it possible to simply bypass rolling the dice and for a DM to say something along the lines of, "After several long hours of attempting to open the lock, you finally hear a slight click."