core & arch_x86: get rid of update_flags keyword, use both system(begin_update_flags) and system(end_update_flags) instead