Add spin-wait on main thread to stop Python for reaping the signal handler thread.