First, I would thread a hand-sewing needle with matching thread. I would not knot the thread because it would be stuck on the top. Then I would take a couple of stitches to knot the beginning, then go along the seam with a back-and-forth motion, hoping to be sewing inside the seam allowances. At the end I would take 2-3 small stitches to knot it.