When lockpicking, there is now a timer that will kick you out if you take too long. The timer is dependent on the level of the lock (harder locks give you less time) and your Lockpicking skill level. If you don't have enough time to complete the minigame for hard locks, consider raising your skill level.
Enchantments that boost lockpicking also increase the amount of time you have.