I use an empty dental floss container for cutting thread when travelling.
It's probably best to check with the airline to save any embarrassment.
It's ironical really as you are allowed to take a pen or biro on board to write with and yet you could do a lot of damage with a pen if you wanted to.