If it would help save lockpicks it would be good, depends on the difficulty if its too hard then it would cost a lot of lockpicks.
Maybe make it optional when trying to open a box, you can open a locked box normally consuming the lockpick or you can try the minigame giving you a chance of saving the lockpick or loosing multiple lockpicks