itm: fixed solutions vector in optimization mode
itm: fixed solutions vector in optimization mode

Before this patch, all solution found in thread are not merged in the
result.

quesnel/baryonyx,quesnel/baryonyx,quesnel/baryonyx