A North Yorkshire school wants to install 2.4m high fencing along its perimeter due to a pupil 'flight risk'.