Fixes for mds cluster + directory fragments

With these changes, my 3 mds test cluster (with thrash_exports, thrash_fragments and verify_scatter 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.