The longtime boss of a union for New York City corrections officers was sentenced to nearly five years in prison Friday for corruption convictions, a steep fall for a man credited with winning guards pay and benefits parity with police and firefighters before squandering $19 million in union funds.