A planned lockdown drill was brought forward after threatening emails were received by the school