mds: move lexical_cast and assert re-#include to the top

We should keep the re-#includes immediately following the offender, and
documented.

Signed-off-by: Sage Weil <sage@inktank.com>