Wip async log

I know the MDS doesn't do clean shutdown right now, but let's at least make it possible to stop the thread cleanly, even if we aren't doing so.