School fined £28k after boy, 9, crushed by falling lock