[jit] Avoid forcing initlocals to TRUE when the 'unsafe' optimization flag is set. Fixes #18068.