Under pressure to improve mental health treatment for inmates in California's massive prison system, officials plan to build a new psychiatric ward to provide inpatient mental health care for prisoners on death row, according to a court-ordered report. The new ward, set to open on Oct. 1, will serve severely mentally ill prisoners on death row at the San Quentin prison near San Francisco, said the report filed late Tuesday. Matthew Lopes, a special master overseeing mental health care in California's prisons, found that 37 severely mentally ill death row inmates at San Quentin prison near San Francisco were entitled to 24-hour inpatient care in a hospital but were not getting it. Lopes, assigned to develop the report by federal Judge Lawrence K. Karlton last December, said he had worked with state officials and lawyers representing inmates to draft plans for a new ward. "They were refusing to transfer them (to a mental hospital) because they said it was too dangerous