The lockers at Stabi work either with a euro coin (1 or 2 €) or with your own padlock.
At Unter den Linden, there are significantly more coin-operated lockers. At Potsdamer Straße it's the other way around: more lockers are operated with your own padlock.
Padlocks can be purchased at both locations at the stationery vending machine in the foyer.
So: if you want to enter any reading room and need to store your bag or coat, make sure you bring either a coin or a padlock.
