[OpenSM] fix lmc assignment algorithm.