There would be SUCH a revolt from authors if publishers tried to do something to legislate libraries away that I doubt any new books would be released for decades.
Who's talking about imprisonment? I'm talking about another writer's strike, leaving publishers with nothing to publish for months or years. With their margins already razor-thin, they have to know that they'd just be done if they tried any funny business.