mds: optimize map element dereference

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>