trellis: corrected a missing callback function set_K in trellis_encoder