On some games, the balls are bodily locked in place by solenoid-actuated gates, but a lot of newer machines use Digital ball locks alternatively, through which the game simply retains count of the amount of locked balls https://pinballshops.com/table-games/