Safety violations and patient overcrowding have long plagued a California psychiatric hospital that served as an inspiration for Portland’s Unity Center for Behavioral Health, suggesting that some of the trouble local hospital leaders continue to face should have been foreseeable.