Now many libraries can do it. There is an access control system at the door. When you go out, like going to the supermarket, the system will automatically identify books that have not been borrowed and call the police. You can bring your own books in and out at will.
Some libraries also provide locker services.