[sgen] A better fix for the POSIX stop-world deadlock.