A dungeon floor's treasure chest is locked at one of six levels, 5, 20, 50, 70, 90, 100, by its floor's strongest creatures and its depth (each dungeon's page says its floors' locks). No creature carries a key to it.
Lockpicks (sold by the provisioner, made by Smithing at 45) used from your pack ask for the lock. You go to it and try for 3 s: under the lock's level you cannot see how; at it or over, your skill against the lock to 100. A try that fails breaks a pick 25% of the time.
The spell Chest Opener opens a lock up to your Sorcery's eight tenths less 4 (76 at 100). Only the dungeons' chests are locked: a house's door or chest is not to be picked. No skill takes a trap apart.