#9881 MDS flush journal test

This is based on #7317 to avoid awkward merges later: ignore the commits up to 'hook in mds_full task'.
Nope, the run() is closed before the .stdout, and the getvalue().strip() is operating on the .stdout attribute of the RemoteProcess returned from run()