He might take more than 6 seconds to open the lock. Nothing terrible about that.The d20 roll represents the myriad things that can go right or wrong for someone attempting an action in a situation.
If the wedding guest manages to open the lock on a noble's strongbox the very first try, it would mean they already have Proficiency with Thieves' Tools, meaning they do know what they're doing. It just went easier than expected.