lib/pry/command_set.rb: do not mutate completions (fixes #1021)

The bug was introduced by 16c08857a69b772775c31f325b482637fdf9d48e