SERVER-14399 linenoise handles backspace incorrectly with Korean character set

 - use mk_wcswidth before refresh line. for calculate width.
please declare "width" where it is first used (on line 645).