The last prisoners were released in 1987, three years into Mikhail Gorbachev’s rule. Now it was being restored as a Gulag Museum by Memorial, a human-rights group founded by the dissident physicist Andrei Sakharov, to remind Russians of their totalitarian past.