src: distinguish refed/unrefed threadsafe Immediates
In some situations, it can be useful to use threadsafe callbacks
on an Environment
to perform cleanup operations that should run
even when the process would otherwise be ending.
(Split out from #33321)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines