After the mountain's temple quest madeline join the party, she can pick locks
And you need the library built