The Bay Area is falling behind on efforts to retrofit buildings that are vulnerable to collapse during a major earthquake, according to a newspaper analysis.