NSW's public mental health system is failing patients, Australia's leading psychiatrist warns, following a mass resignation of psychiatrists and the shutdown of hospital beds.