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