The law on mental health needs clarifying, says QC