find_free_chan_in_stack: cleanup buggy usage