A 16-year-old from Western Australia has admitted responsibility for posting violent threats online directed at a mosque in Sydney.