SERVER-14399 linenoise handles backspace incorrectly with Korean character set

 - use mk_wcswidth before refresh line. for calculate width.
Please use c++ style casts without spacing between "int" and "*":

static_cast<const int*>(buf32)