Middle school student stashes handgun in locker