I have never seen this done. If I were to attempt it, I would probably use a single thread in a needle, bury the knot inside the sandwich, then take a tiny stitch to tack the machine thread to the sandwich. When done, I'd bury the knot inside the sandwich similar to how a quilting thread is buried.
I do not envy you this task!