Cities are eager to turn office buildings into housing amid rising remote work. But that's harder than you might think.