[System/RegularExpressions] Fix the conditional, we disable Emit code on FULL_AOT
[System] Disable use of CAS when compiling with DISABLE_CAS_USE