mds: Add assertion to catch object mutation error

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Merge pull request #873 from ceph/wip-mds-assert

mds: Add assertion to catch object mutation error

Reviewed-by: Sage Weil <sage@inktank.com>