S.F. leads the nation in improving its housing shortage. But not for the reasons you think