I think it also bears mentioning that depending on the circumstances, some locks might not be in the best of shape - a locked chest in a dungeon might be one the occupants recently brought in with them... or the chest might have been sitting in the dungeon for quite some time and hasn't been...