The city incarcerates more people for gun crimes than there are shootings — a gap that has widened with more targeted gun enforcement.