mds: properly unregister asok commands

Signed-off-by: Yan, Zheng <zyan@redhat.com>
mds: disallow flush dentry/journal when MDS is readonly

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