Exit LLVM thread when stop is set

When we are paused, a stop might be requested. This makes sure we check
the stop_ and exit the thread if we have to. This prevents a deadlock /
race for example if a just forked process exits immediately.