[jit] Avoid running class cctors during AOT when using the AggressiveInlining attribute. Fixes #17558.