rts: Fix capability-count check in zeroSlop
Previously zeroSlop
examined RtsFlags
to determine whether the
program was single-threaded. This is wrong; a program may be started
with +RTS -N1
yet the process may later increase the capability count
with setNumCapabilities
. This lead to quite subtle and rare crashes.
Fixes #23088 (closed).