SERVER-6086 linenoise handles backspace incorrectly with Korean character set

 - use mk_wcswidth before refresh line. for calculate width.
Could you please restore the previous version with const int*?