builtin/apply: move 'apply_with_reject' global into 'struct apply_state'