Add gcsafe pragmas to closure types.