A Sydney school has been plunged into lockdown after a 14-year-old boy was allegedly stabbed.