rts: Reset STATIC_LINK field of reverted CAFs
When we revert a CAF we must reset the STATIC_LINK field lest the GC might assume that the CAF should be ignored (e.g. carries the STATIC_FLAG_LIST flag). See Note [CAF lists] and Note [STATIC_LINK fields].
Fixes #16842 (closed).
Edited by Ben Gamari