mds: fix O_TRUNC locking

When truncating a file, we should xlock the corresponding filelock.
(revoke any Fw caps from clients).

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