School put in lockdown and pupils kept inside after hoax ‘threatening emails’