I take several very short stitches (3-4) and then cut the threads off. Have never had a seam undone. If I was going to make a quilt for a competition, then I would bury the threads.
Unfortunately, most machines that have a "locking stitch" only stitch in the same place, and if you cut that off, you lose the locking, that is why I use the several short stitches.