Fascinating. I hadn't even thought about the possibility that you could get physically locked out of the library on a permanent basis like that. It's such an incredibly unlikely situation for anyone to end up in. I don't really see it as a problem, though, as the endings and overall progression will be able to deal with this automatically. The biggest challenge is that you've made it impossible for you to achieve the good endings in your own game.
Unless you just want to see how things turn out, you might want to start over. Remember, you can hold down Ctrl to skip text you've already seen, so it won't take as long as it sounds like.