#9881 MDS flush journal asok command

Based on greg's branch to avoid awkward merging later, merge this after that.
this is basically equal to "set g_conf->mds_log_max_segments to 1, then call MDLog::trim()". why not re-use MDLog::trim.