Fixes for mds cluster + directory fragments

With these changes, my 3 mds test cluster (with both thrash_exports and thrash_fragments enabled) can survive my stress test ( fsstree, dbench, blogbench) for hours. (usually end up with a freeze dir deadlock). Nested stat and restarting the whole cluster work well, restarting individual mds still has some minor problem.