ci/bare-metal: Close serial and join serial threads before exit.
This should fix the intermittent (~1/week) cheza failure where python complains that a thread tried to do stdio while the main thread has exited.
This should fix the intermittent (~1/week) cheza failure where python complains that a thread tried to do stdio while the main thread has exited.