Keep the loose part of the thread as far away as possible from the leather.
Take the lighter.
Make sure its fuel is turned low so you’ll get a small flame.
Move the flame slowly towards the thread.
Burn the thread all the way down.
Lightly press the burned part with the side of the lighter.
Great job! Now the thread won’t come loose again.