setNumCapabilities: Assert that n_caps < MAX_N_CAPS
In #25560 (closed) it was noticed that setNumCapabilities
would allow the user to set a capability count higher than MAX_N_CAPABILITIES
. Here we introduce a check for this in ghc-internal
and add an assertion in the RTS for good measure.
Fixes #25560 (closed).