Removed unnecessary "Share Library" option. Fixed handling of locked libraries.