[SERVER-14399] fix linenoise multibyte bug.
 - use exist function of mk_wcswidth.
 - before set position, calculate width of characters.