mds: verify backtrace when fetching dirfrag

Fixes: #9557
Signed-off-by: Yan, Zheng <zyan@redhat.com>