Been there
in grand Cayman they went through my dive bag with a toothcomb looking for dive lights with batteries in. They said I had to take them all out, even the little ones run by 4 AA batteries.
The xray guys failed to notice the 100w Kowalski recharable in my rucksack but I had the lock on it anyway.
They have a point, my 100w light would catch fire if left on. The problem is they use people with an IQ of 50 to try to stop the issue so pointing out it has a lock doesnt work, they just want the bulb/batteries out.
In our case we diverted her attention by complaining that the people in the next class up were not subject to random security checks and asked if this was standard procedure to have reduced security for people paying more.
I dont understand why they dont make you just carry them where you can see them.
C'est La vie