Rapper Lil Durk may have just avoided a prison sentence after pleading guilty to a gun charge in Cook County criminal court. Durk was facing…