A school in Melbourne's north fringe went in lockdown after gunman has allegedly threatened students.