Three years ago Riley Hospital for Children opened a psychiatric unit amid much fanfare, saying it would provide much-needed care for children and adolescents with conditions ranging from anxiety to eating disorders to bipolar disorder. But this spring, the hospital quietly shuttered the 20-bed unit, which included safe rooms especially designed for patients who might harm themselves.