rts: extend compiler function attribute usage
See #22381.
The annotations (when using a new-enough version of GCC for them to trigger) triggered one case where free
was used on an stgMallocBytes
allocation, instead of stgFree
. Granted, they're currently the same anyway.