Move helper for syncing data/instruction cache to lj_mcode.c.